//
//  PaySuccessfulTableViewCell.m
//  Youhuiju
//
//  Created by 余尚飞 on 16/8/12.
//  Copyright © 2016年 yutenys. All rights reserved.
//

#import "PaySuccessfulTableViewCell.h"

@interface PaySuccessfulTableViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *tipLabel;
@property (weak, nonatomic) IBOutlet UIButton *checkOrderBtn;

@property (weak, nonatomic) IBOutlet UIButton *backHomeBtn;

//适配
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgTop;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgWidth;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imgHight;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *tipLabelTop;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *tipLabelHeight;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *checkOrderBtnTop;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *checkOrderLeading;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *checkOrderWidth;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *checkOrderHeight;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *backHomeLeading;


@end


@implementation PaySuccessfulTableViewCell



- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.imgTop.constant = 30 * FitH;
    self.imgHight.constant = 67 * FitH;
    self.imgWidth.constant = 67 * FitW;
    
    self.tipLabelTop.constant = 28 * FitH;
    self.tipLabelHeight.constant = 17 * FitH;
    
    self.checkOrderBtnTop.constant = 40 * FitH;
    self.checkOrderLeading.constant = 65 * FitW;
    self.checkOrderWidth.constant = 90 * FitW;
    self.checkOrderHeight.constant = 26 * FitH;
    
    self.backHomeLeading.constant = 65 * FitW;
    
    self.checkOrderBtn.layer.borderWidth = 2.0 * FitH;
    self.checkOrderBtn.layer.borderColor = [UIColor colorWithHexString:@"c6c6c6"].CGColor;
    self.checkOrderBtn.layer.cornerRadius = 5 * FitH;
    
    self.backHomeBtn.layer.borderWidth = 2.0 * FitH;
    self.backHomeBtn.layer.borderColor = [UIColor colorWithHexString:@"c6c6c6"].CGColor;
    self.backHomeBtn.layer.cornerRadius = 5 * FitH;
    
    self.tipLabel.font = [UIFont systemFontOfSize:18 * FitH];
    
    
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)buttonClickedAction:(UIButton *)sender {
    if (self.buttonClickedHandler)
    {
        self.buttonClickedHandler(sender.tag);
    }
}




@end
